Skip to content

[Scheduler] Bugfix: Cancelling a continuation#16151

Merged
acdlite merged 1 commit intofacebook:masterfrom
acdlite:cancel-continuation
Jul 22, 2019
Merged

[Scheduler] Bugfix: Cancelling a continuation#16151
acdlite merged 1 commit intofacebook:masterfrom
acdlite:cancel-continuation

Conversation

@acdlite
Copy link
Copy Markdown
Collaborator

@acdlite acdlite commented Jul 17, 2019

Cancelling the original task should also cancel its continuation.

Cancelling the original task should also cancel its continuation.
@sizebot
Copy link
Copy Markdown

sizebot commented Jul 17, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

next: null,
previous: null,
};
var continuationTask = task;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it desirable to mutate task.callback, task.next and task.previous? if not, the task object needs to be copied, not simply assigned.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's on purpose.

@acdlite acdlite requested a review from bvaughn July 22, 2019 18:13
@acdlite acdlite merged commit 2bd88e3 into facebook:master Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants